@use "./variables.scss" as *;
// 对部分样式进行重置
body {
  padding: 0;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, $font-family;
  font-size: $font-size-base;
  line-height: 1.5;
  // color: var(--td-text-color-secondary);
  -webkit-font-smoothing: antialiased;
}

pre {
  font-family: $font-family;
}

ul,
dl,
li,
dd,
dt {
  padding: 0;
  margin: 0;
}

figure,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

* {
  box-sizing: border-box;
}

.t-button-link,
a {
  color: var(--td-brand-color);
  text-decoration: none;
  cursor: pointer;
  transition: color $anim-duration-base $anim-time-fn-easing;

  &:hover {
    color: var(--td-brand-color-hover);
  }

  &:active {
    color: var(--td-brand-color-active);
  }

  &--active {
    color: var(--td-brand-color-active);
  }

  &:focus {
    text-decoration: none;
  }
}

.t-button-link {
  margin-right: $spacer-3;

  &:last-child {
    margin-right: 0;
  }
}

::-webkit-scrollbar {
  width: 0.5rem;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--td-scrollbar-color);
  border: 2px solid transparent;
  border-radius: 0.375rem;
}

.plugin-web-update-notice {
  top: 40% !important;
  left: 50% !important;
  transform: translate(-10%, 0%) !important;
}

/* dialog */
.t-dialog__ctx .t-dialog__position.t-dialog--top {
  padding-top: 10vh !important;
}

.t-dialog__body {
  padding-top: 2rem;
  padding-bottom: 0;
}

.t-dialog {
  padding: 1.25rem !important;
}

.t-dialog__header-content {
  font-family: Alibaba-PuHuiTi-Regular, sans-serif !important;
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--color-custom-highlight-title);
}

.t-dialog__close {
  width: 1.5rem;
  height: 1.5rem;

  svg {
    width: 1.5rem !important;
    height: 1.5rem !important;
    color: var(--color-custom-highlight-title);
  }
}

.t-dialog__footer {
  margin-top: 0.5rem;
}

.t-popconfirm__body > .t-icon {
  display: none !important;
}

.t-popconfirm__content,
.t-popconfirm__inner {
  width: 31.875rem !important;
  max-width: 31.875rem !important;
}

/* 表单 */
//.t-form__item > .t-form__label > label {
//  color: var(--color-custom-main-text) !important;
//}

/* 表格 */
.t-table {
  font-size: 0.75rem !important;

  .t-table__header > tr > th {
    color: var(--color-custom-main-text) !important;
  }
  .t-table__body > tr > td {
    color: var(--color-custom-highlight-title) !important;
  }
}

/* 全局表格样式 */
.table {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;

  :deep(.t-table__content) {
    flex: 1 !important;
  }

  :deep(.t-table__pagination) {
    padding-bottom: 0 !important;
  }

  .t-button {
    padding: 0 0.5rem 0 0 !important;
  }
}

.msp-container {
  .wrap-header {
    padding: 0;
    .t-input {
      width: 15rem !important;
    }
  }

  .wrap-content {
    padding: 0;
  }
}

// loading
.t-icon-loading {
  width: 1rem;
  height: 1rem;
}

.t-form__item {
  margin: 0 1rem 1rem 0 !important;
}

.t-form__label {
  padding-right: 0.625rem !important;
}
